package chapter06

/**
  * create by undeRdoG on  2021-05-31  22:19
  * 凡心所向，素履以往，生如逆旅，一苇以航。
  */
object Test04_ClassForAccess {

}


//定义一个父类
class Person{

  private var idCard: String  = "35222341"

  protected var name: String = "Alice"

  var sex: String = "female"

  private [chapter06] var age: Int = 19


  def printInfo()={
    println(s"person: ${idCard} ${name} ${sex} ${age}")
  }
}